package cn.mystyle.model.account;

import com.alibaba.fastjson.TypeReference;

import cn.mystyle.common.annotation.Location;
import cn.mystyle.common.bean.BaseBean;
import cn.mystyle.common.bean.PaginationBean;
import cn.mystyle.common.response.ListResponse;

/**
 * @author clark
 * 记一笔
 */
@Location(module = "accountservice")
public class Record extends BaseBean
{
    private static final long serialVersionUID = 4893982224998391917L;
    
    /**
     * 主键，自增长
     */
    private Integer id;
    
    /**
     * 所属用户
     */
    private Integer userId;
    
    /**
     * 收支类型
     */
    private Integer type;
    
    /**
     * 发生时间
     */
    private String dateTime;
    
    /**
     * 合作伙伴
     */
    private Integer partnerId;
    
    /**
     * 合作伙伴名称
     */
    private String partnerName;
    
    /**
     * 数值
     */
    private String number;
    
    /**
     * 商品名称
     */
    private String itemName;
    
    /**
     * 单位价格
     */
    private String unitPrice;
    
    /**
     * 总价格
     */
    private String totalPrice;
    
    /**
     * 备注
     */
    private String remark;
    
    /**
     * 分页对象
     */
    private PaginationBean page;
    
    /**
     * 开始时间
     */
    private String startTime;
    
    /**
     * 结束时间
     */
    private String endTime;
    
    /**
     * 用like检索
     */
    private String likeTime;
    
    public Integer getId()
    {
        return id;
    }
    
    public void setId(Integer id)
    {
        this.id = id;
    }
    
    public String getDateTime()
    {
        return dateTime;
    }
    
    public void setDateTime(String dateTime)
    {
        this.dateTime = dateTime;
    }
    
    public Integer getUserId()
    {
        return userId;
    }
    
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }
    
    public Integer getPartnerId()
    {
        return partnerId;
    }
    
    public void setPartnerId(Integer partnerId)
    {
        this.partnerId = partnerId;
    }
    
    public String getNumber()
    {
        return number;
    }
    
    public void setNumber(String number)
    {
        this.number = number;
    }
    
    public String getItemName()
    {
        return itemName;
    }
    
    public void setItemName(String itemName)
    {
        this.itemName = itemName;
    }
    
    public String getUnitPrice()
    {
        return unitPrice;
    }
    
    public void setUnitPrice(String unitPrice)
    {
        this.unitPrice = unitPrice;
    }
    
    public String getTotalPrice()
    {
        return totalPrice;
    }
    
    public void setTotalPrice(String totalPrice)
    {
        this.totalPrice = totalPrice;
    }
    
    public String getRemark()
    {
        return remark;
    }
    
    public void setRemark(String remark)
    {
        this.remark = remark;
    }
    
    public String getStartTime()
    {
        return startTime;
    }
    
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }
    
    public String getEndTime()
    {
        return endTime;
    }
    
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }
    
    public String getPartnerName()
    {
        return partnerName;
    }
    
    public void setPartnerName(String partnerName)
    {
        this.partnerName = partnerName;
    }
    
    public Integer getType()
    {
        return type;
    }
    
    public void setType(Integer type)
    {
        this.type = type;
    }
    
    public PaginationBean getPage()
    {
        return page;
    }
    
    public void setPage(PaginationBean page)
    {
        this.page = page;
    }
    
    public String getLikeTime()
    {
        return likeTime;
    }
    
    public void setLikeTime(String likeTime)
    {
        this.likeTime = likeTime;
    }
    
    /**
     * 查询时使用
     */
    public static TypeReference<ListResponse<Record>> getTypeReference()
    {
        return new TypeReference<ListResponse<Record>>()
        {
        };
    }
}
